import hungary.Problem;

import java.util.ArrayList;

public class Test {

    public static void main(String[] args) {
        ArrayList<Integer> arr1 = new ArrayList<>();
        ArrayList<Integer> arr2 = new ArrayList<>();
        arr1.add(1);
        arr1.add(1);
        arr1.add(1);
        arr1.add(1);
        arr1.add(1);
        arr2 = (ArrayList<Integer>) arr1.clone();
        arr1.clear();
        System.out.println(arr2.size());
    }
}